package bbalgae.swing;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JOptionPane;

public class SwingMenuActionL implements ActionListener {

	@Override
	public void actionPerformed(ActionEvent e) {
		
		switch(e.getActionCommand()){
		
		case "new" : JOptionPane.showMessageDialog(null, "new 눌렷음","홍메뉴",JOptionPane.QUESTION_MESSAGE)  ;break;
		case "close" : JOptionPane.showMessageDialog(null, "close 눌렷음","홍홍홍",JOptionPane.WARNING_MESSAGE)  ;break;
		case "about" : new SwingAboutDialog(); break; 
		case "exit" : System.exit(0); break; 
		
		
		}
		
	}

}
